/*
 * @Author: ZhaoZhiqi
 * @Date: 2022-12-13 12:39:19
 * @LastEditors: ZhaoZhiqi
 * @LastEditTime: 2022-12-13 13:12:06
 * @Description: 操作日志接口
 * @FilePath: \tuanfeng-admin-front\src\api\logs.ts
 */
import requset from "../utils/request"

const urlMap = {
    '/window': 'wind/getWindowLog', // 窗口管理
    '/article': 'art/getArtLog', // 政务动态
    '/policy': 'dis/getDiscountPolicyLog', // 惠企政策
    '/question': 'prob/getProbLog', // 12345热线
    '/bidding': 'bid/getBidLog', // 招投标投诉
    '/agency': 'agent/getFirmAgentLog', // 项目帮代办
    '/agency_online': 'agent/getMassAgentLog', // 群众帮代办
    '/role': 'role/getRoleLog', // 角色管理
    '/user': '/user/getUserLog', // 用户管理
}

/**
 * @description: 操作日志
 * @param {string} path 当前页面path
 * @param {number} pageNo
 * @param {number} pageSize
 * @return {*}
 */
export const getUserLogsAPI = (data: any, path: string) => {
    return requset(urlMap[path], 'GET', data)
}

